package com.itheima.a04threadmethod1;

public class SleepSortThead extends Thread{

    private Integer time ;

    public SleepSortThead(Integer time ){
        this.time = time;
    }

    public void run(){
        try {
            sleep(time * 1000);
            System.out.print(time + " ");
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
